<!DOCTYPE html>
<html>
    <head>
        <title>web-messaging-rpc Example</title>
        <script src="lib/jquery.js">
        </script>
        <script type="text/javascript" src="../src/webrpc.js">
        </script>
        <script type="text/javascript">
            var helloService;
            $(function(){
                webrpc.load("helloAsync.js", function(services, error){
                    helloService = services.helloService;
                });
            });
	    function async_hello(){
                helloService.hello(function(result, error) {
                    alert(result);
                });
            }
        </script>
    </head>
    <body>
        <h1>HELLO WMR WORLD!</h1>
        <input id="button1" type="button" onclick="async_hello()" value="button">
    </body>
</html>
